﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Threading;

namespace Smart.Model
{
    public class NetMessageQueue : MonoBehaviour
    {
        private void Awake()
        {
            SynchronizationContext.SetSynchronizationContext(OneThreadSynchronizationContext.Instance);
            //DontDestroyOnLoad(this.gameObject);
            Log.Info("[网络消息队列]:启动成功...");
        }

        private void Update()
        {
            OneThreadSynchronizationContext.Instance.Update();
        }

        private void OnDestroy()
        {

        }
    }
}